package util;

import java.util.Comparator;

import model.ContactModel;

public class ComparatorGroup implements Comparator<Object>{

	@Override
	public int compare(Object o1, Object o2) {
		ContactModel c1 = (ContactModel)o1;
		ContactModel c2 = (ContactModel)o2;
		
		return c1.getGroup().compareTo(c2.getGroup());
	}

}
